#ifndef FILETERRAINMODULE
#define FILETERRAINMODULE

#include <modules\dataModule.h>
#include <geo\geoLocation.h>
#include <surface\terrainRowsBin.h>
#include <base\vec2i.h>
#include <base\vec3f.h>
#include <base\global.h>

#include <string>

using namespace std;

class model;

class fileTerrainModule : public dataModule {

  vec2i tile_res;
  vec2i levels_interval;
  int level0_offset;

  string input_xyz_file;

  terrainRowsBin *rows_bin;

public:

  fileTerrainModule(vec2i _tile_res, vec2i _levels_interval, int _level0_offset, string input_xyz_file_);

  virtual bool post(model * _model);

  friend terrainRowsBin;
};

#endif